<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditProduct.aspx.cs" Inherits="asp_pages_EditProduct" %>

<%@ Register Assembly="FredCK.FCKeditorV2, Version=2.6.3.22452, Culture=neutral, PublicKeyToken=4f86767c9b519a06"
    Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Edit product information</title>
    <link href="../../styles/admin.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
        <table>
            <tr>
                <td colspan="2">
                    <h2>Edit product's information</h2></td>
                <td colspan="1" style="width: 150px">
                </td>
            </tr>
            <tr>
                <td colspan="2" id="image_area">
                    <asp:Image ID="imgItem" runat="server" /></td>
                <td style="width: 150px">
                </td>
            </tr>
            <tr>
                <td style="width: 155px">
                    <asp:Label ID="Label1" runat="server" Text="Name:"></asp:Label></td>
                <td style="width: 300px">
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
                <td style="width: 150px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                        ErrorMessage="*" ValidationGroup="A"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 155px">
                    <asp:Label ID="Label2" runat="server" Text="Category:"></asp:Label></td>
                <td style="width: 300px">
                    <asp:DropDownList ID="cmbCategories" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 150px">
                </td>
            </tr>
            <tr>
                <td style="width: 155px">
                    <asp:Label ID="Label3" runat="server" Text="Unit:"></asp:Label></td>
                <td style="width: 300px">
                    <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox></td>
                <td style="width: 150px">
                </td>
            </tr>
            <tr>
                <td style="width: 155px; height: 26px;">
                    <asp:Label ID="Label4" runat="server" Text="Size:"></asp:Label></td>
                <td style="width: 300px; height: 26px;">
                    <asp:TextBox ID="txtSize" runat="server"></asp:TextBox></td>
                <td style="width: 150px; height: 26px;">
                </td>
            </tr>
            <tr>
                <td style="width: 155px">
                    <asp:Label ID="Label5" runat="server" Text="Price:"></asp:Label></td>
                <td style="width: 300px">
                    <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox></td>
                <td style="width: 150px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPrice"
                        ErrorMessage="*" ValidationGroup="A"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 155px">
                    <asp:Label ID="Label6" runat="server" Text="Quantity:"></asp:Label></td>
                <td style="width: 300px">
                    <asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox></td>
                <td style="width: 150px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtQuantity"
                        ErrorMessage="*" ValidationGroup="A"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 155px">
                    <asp:Label ID="Label7" runat="server" Text="Image URL:"></asp:Label></td>
                <td style="width: 300px">
                    <asp:FileUpload ID="fupImageURL" runat="server" /></td>
                <td style="width: 150px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="fupImageURL"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 155px; height: 21px">
                    <asp:Label ID="Label8" runat="server" Text="For:"></asp:Label></td>
                <td style="width: 300px; height: 21px">
                    <asp:DropDownList ID="cmbPetCategories" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 150px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 155px; height: 21px">
                    Information:</td>
                <td style="width: 300px; height: 21px">
                    </td>
                <td style="width: 150px; height: 21px">
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <FCKeditorV2:FCKeditor ID="fckEditor" runat="server" BasePath="fckeditor/" Height="300px">
                    </FCKeditorV2:FCKeditor>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 37px">
                    <asp:Label ID="lblMessage" runat="server"></asp:Label></td>
                <td colspan="1" style="width: 150px; height: 37px">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" Text="Update" Width="87px" />
                    <asp:Button ID="btnPreview" runat="server" OnClick="Button1_Click" Text="Preview" Width="86px" />&nbsp;</td>
                <td colspan="1" style="width: 150px">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    </td>
                <td colspan="1" style="width: 150px">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="lblPreviewContent" runat="server"></asp:Label></td>
                <td colspan="1" style="width: 150px">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
